import { ActorNkeyEnum, ActorSkeyEnum } from "../配置/基础配置";


export function Main(Npc: TNormNpc, Player: TPlayObject, Args: TArgs) {
    let ItemsString = `<{S=名称;C=251;X=0;Y=0}><{S=防御;C=251;X=60;Y=0}><{S=魔域;C=251;X=120;Y=0}><{S=攻击;C=251;X=180;Y=0}>`;
    ItemsString += `<{S=HP;C=251;X=240;Y=0}><{S=等级;C=251;X=300;Y=0}>`
    let list: TActorList = Player.SlaveList;
    let y = 0;
    for (let i = 0; i < list.Count; i++) {
        let actor: TActor = list.Actor(i)
        y += 15;
        let name = actor.GetSVar(ActorSkeyEnum.MonName)
        ItemsString += `<{S=${name};C=251;X=0;Y=${y}}>`
        ItemsString += `<{S=${actor.ACMin}-${actor.ACMax};C=255;X=60;Y=${y}}>`
        ItemsString += `<{S=${actor.MACMin}-${actor.MACMax};C=255;X=120;Y=${y}}>`
        ItemsString += `<{S=${actor.DCMin}-${actor.DCMax};C=255;X=180;Y=${y}}>`
        ItemsString += `<{S=${actor.MaxHP};C=255;X=240;Y=${y}}>`
        let level = actor.GetNVar(ActorNkeyEnum.SlaveLevel)
        ItemsString += `<{S=${level};C=255;X=300;Y=${y}}>`
    }

    Npc.Say(Player, ItemsString)
}